package com.yazi.mxz.common.entity.beans;

import com.myframework.smhj.hibernate.Entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Email entity. @author MyEclipse Persistence Tools
 */
@javax.persistence.Entity
@Table(name = "MXZ_EMAIL", schema = "HCD_DEV")
public class Email extends Entity implements java.io.Serializable {

	// Fields

	private Long emailId;
	private String toEmail;
	private Integer status;
	private Integer fail;
	private Integer type;
	private String params;
	private Long sendTime;
	private Long addTime;

	// Constructors

	/** default constructor */
	public Email() {
	}

	/** minimal constructor */
	public Email(String toEmail, Integer status, Integer fail, Integer type, Long sendTime,
			Long addTime) {
		this.toEmail = toEmail;
		this.status = status;
		this.fail = fail;
		this.type = type;
		this.sendTime = sendTime;
		this.addTime = addTime;
	}

	/** full constructor */
	public Email(String toEmail, Integer status, Integer fail, Integer type, String params,
			Long sendTime, Long addTime) {
		this.toEmail = toEmail;
		this.status = status;
		this.fail = fail;
		this.type = type;
		this.params = params;
		this.sendTime = sendTime;
		this.addTime = addTime;
	}

	// Property accessors
	@SequenceGenerator(name = "generator", sequenceName = "SEQ_EMAIL")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "EMAIL_ID", unique = true, nullable = false, precision = 15, scale = 0)
	public Long getEmailId() {
		return this.emailId;
	}

	public void setEmailId(Long emailId) {
		this.emailId = emailId;
	}

	@Column(name = "TO_EMAIL", nullable = false, length = 100)
	public String getToEmail() {
		return this.toEmail;
	}

	public void setToEmail(String toEmail) {
		this.toEmail = toEmail;
	}

	@Column(name = "STATUS", nullable = false, precision = 2, scale = 0)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "FAIL", nullable = false, precision = 2, scale = 0)
	public Integer getFail() {
		return this.fail;
	}

	public void setFail(Integer fail) {
		this.fail = fail;
	}

	@Column(name = "TYPE", nullable = false, precision = 2, scale = 0)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "PARAMS", length = 400)
	public String getParams() {
		return this.params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	@Column(name = "SEND_TIME", nullable = false, precision = 15, scale = 0)
	public Long getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Long sendTime) {
		this.sendTime = sendTime;
	}

	@Column(name = "ADD_TIME", nullable = false, precision = 15, scale = 0)
	public Long getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Long addTime) {
		this.addTime = addTime;
	}

}